<template>
  <a-input
    v-model:value="formData[item.dataIndex]"
    :name="item.dataIndex"
    :placeholder="item.placeholder"
  />
</template>
<script lang="ts">
import { defineComponent, toRef } from 'vue'
export default defineComponent({
  name: 'RHInput',
  props: {
    item: {
      default: null
    },
    form: {
      default: null
    }
  },
  setup(props) {
    const formData = toRef(props, 'form')
    return {
      formData
    }
  },
  data() {
    return {}
  }
})
</script>

<style scoped></style>
